package demo5.dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDAOImpl implements IUserDAO{
    @Override
    public boolean findUser(){
        System.out.println("UserDAOImpl.findUser...");
        double r=Math.random();
        if(r>0.5){
            System.out.println("UserDAO:找到该用户");
            return true;
        }else {
            System.out.println("UserDAO:未找到该用户");
            return false;
        }

    }
}
